package com.zh.work.entity.trans;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.zh.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel("交易管理消息通知实体类")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("notify_merch_trans")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class NotifyMerchTransEntity extends BaseEntity {
    private static final long serialVersionUID = 2907290203467096605L;
    @ApiModelProperty(value = "主键", name = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "客户端地址", name = "ip")
    private String ip;
    @ApiModelProperty(value = "交易类型(1-传统POS 2-MPOS 3-二维码 4-网关 5-快捷)", name = "transType")
    private Integer transType;
    @ApiModelProperty(value = "机构号", name = "branchno")
    @TableField(value = "branchno")
    private String branchNo;
    @ApiModelProperty(value = "机构名称", name = "branchName")
    private String branchName;
    @ApiModelProperty(value = "商户号", name = "merchNo")
    @TableField(value = "merchno")
    private String merchNo;
    @ApiModelProperty(value = "商户名称", name = "merchName")
    private String merchName;
    @ApiModelProperty(value = "交易流水号", name = "orderno")
    @TableField(value = "orderno")
    private String orderNo;
    @ApiModelProperty(value = "通知类型(http或https)", name = "notifyType")
    private String notifyType;
    @ApiModelProperty(value = "通知地址", name = "notifyUrl")
    private String notifyUrl;
    @ApiModelProperty(value = "通知数据", name = "notifyData")
    private String notifyData;
    @ApiModelProperty(value = "已发送次数", name = "sendCount")
    private Integer sendCount;
    @ApiModelProperty(value = "通知状态(0-未通知 1-无需通知 2-通知成功 3-通知失败)", name = "notifyStatus")
    private Integer notifyStatus;
    @ApiModelProperty(value = "上次通知时间", name = "lastTime")
    private String lastTime;
    @ApiModelProperty(value = "创建时间", name = "addTime")
    private String addTime;
    @ApiModelProperty(value = "业务类型(1-借记交易 2-贷记交易)", name = "bizType")
    private Integer bizType;


}
